﻿@model Bibilioteca.Models.Catalogo

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

@if (Model.Id != 0)
{   
    <h3>Are you sure you want to delete this?</h3>
    <fieldset>
        <legend>Catalogo</legend>

        <div class="display-label">
             @Html.DisplayNameFor(model => model.Nombre)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Nombre)
        </div>
    </fieldset>
    using (Html.BeginForm()) {
        <p>
            <input type="submit" value="Delete" /> |
            @Html.ActionLink("Back to List", "Index")
        </p>
    }
}
else
{ 
     <p>Este usuario no existe </p>
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
}
